package Day2Zuoye;

import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("第一组");
        String yi=in.nextLine();
        System.out.println("第二组");
        String er=in.nextLine();
        int count=0;
        int index=0;
        while((index=er.indexOf(yi,index))!=-1){
          index=index+yi.length();
          count++;
      }
        System.out.println("出现"+count+"次");




    }
}
